package com.yida.gwj.report.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @Author: PPV
 * @Date: 2023-03-09
 */
@ApiModel("计息请求")
public class GwjCalculateRateRequest implements Serializable {

    private static final long serialVersionUID = 1553088314307838694L;

    @NotNull(message = "当年增值收益不能为空")
    @ApiModelProperty("当年增值收益")
    private BigDecimal yearBenefit;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "起始时间不能为空")
    @ApiModelProperty("起始时间")
    private LocalDate startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "结束时间不能为空")
    @ApiModelProperty("结束时间")
    private LocalDate endTime;

    @NotNull(message = "小区不能为空")
    @ApiModelProperty("小区")
    private Long communityId;

    public BigDecimal getYearBenefit() {
        return yearBenefit;
    }

    public void setYearBenefit(BigDecimal yearBenefit) {
        this.yearBenefit = yearBenefit;
    }

    public LocalDate getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDate startTime) {
        this.startTime = startTime;
    }

    public LocalDate getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDate endTime) {
        this.endTime = endTime;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }
}
